﻿using NPOI.SS.Formula.Functions;
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SQLite;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void uiButton1_Click(object sender, EventArgs e)
        {
            SQLiteHelper.CreateTable();
            Profiles.SetValue("数据库", "数据库", "SQLite");
            MessageBox.Show("初始化完成！" + "请重新打开程序");
            this.Close();
        }

        private void uiButton2_Click(object sender, EventArgs e)
        {
            Form3 form3 = new Form3(); //生成一个Form2对象
            this.Close();
            form3.ShowDialog();  //将Form2窗体显示为模式对话框。
        }
    }
}
